package define

import "saas-app/app/model"

// 班级学员列表请求参数
type ClassMemeberListParams struct {
	PagingParams
	Status  string `v:"required|in:'',0,1,2#状态不能为空|参数错误"` // '1': '在班', '2': '离班'
	ClassId string `v:"required#班级ID不能为空"`
}

type CreateClassMemberRequest struct {
	SchoolId   uint   `v:"required|min:1#学校id不能为空|非法参数SchoolId"`
	CampusId   uint   `v:"required|min:1#校区id不能为空|非法参数CampusId"`
	ClassId    uint   `v:"required|min:1#班级id不能为空|非法参数ClassId"`
	StudentId  uint   `v:"required|min:1#学员id不能为空|非法参数StudentId"`
	MemberType string `v:"required#学生类型不能为空"`
	EntryAt    string
	LeaveAt    string
	Status     uint
}

type ClassMemberList struct {
	model.ClassMember
	StudentName string `json:"student_name"`
}

type CreateClassMemberParam struct {
	SchoolId   uint
	CampusId   uint
	ClassId    uint
	StudentId  uint
	MemberType string
	EntryAt    string
	LeaveAt    string
	Status     uint
}
